package com.veetao.api.msgqueue;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 
 * @author guohongtao
 * @date 2016年8月1日
 */
public abstract class ActionConsumer<T extends AbstractAction> {

	protected static Log logger = LogFactory.getLog(ActionConsumer.class);
	public ActionConsumer() {
		super();
	}
	
	@SuppressWarnings("unchecked")
	public void consumeAction(AbstractAction action) {
		consume((T) action);
	}
	
	abstract public void consume(T action);

}
